package com.dynamic.mybatis.core.metadata;

import java.util.List;

/**
 * @Description
 * @Author xs
 * @Date 2023/3/16 10:35
 */
public class DynamicSqlNode {
    private String text;
    private String sqlNode;
    private List<String> expands;
    //针对 item别名 <foreach collection="userIds" item="item" open="(" separator="," close=")">
    private String originalName; //collection值
    private String alias;//item 值
    private String tag;
    private List<DynamicSqlNode> children;
    private List<String> paths;
    private boolean parentIf;

    public List<String> getPaths() {
        return paths;
    }

    public DynamicSqlNode setPaths(List<String> paths) {
        this.paths = paths;
        return this;
    }

    public String getText() {
        return text;
    }

    public DynamicSqlNode setText(String text) {
        this.text = text;
        return this;
    }

    public List<DynamicSqlNode> getChildren() {
        return children;
    }

    public DynamicSqlNode setChildren(List<DynamicSqlNode> children) {
        this.children = children;
        return this;
    }

    public String getSqlNode() {
        return sqlNode;
    }

    public DynamicSqlNode setSqlNode(String sqlNode) {
        this.sqlNode = sqlNode;
        return this;
    }

    public String getTag() {
        return tag;
    }

    public DynamicSqlNode setTag(String tag) {
        this.tag = tag;
        return this;
    }

    public List<String> getExpands() {
        return expands;
    }

    public DynamicSqlNode setExpands(List<String> expands) {
        this.expands = expands;
        return this;
    }

    public String getAlias() {
        return alias;
    }

    public DynamicSqlNode setAlias(String alias) {
        this.alias = alias;
        return this;
    }

    public String getOriginalName() {
        return originalName;
    }

    public DynamicSqlNode setOriginalName(String originalName) {
        this.originalName = originalName;
        return this;
    }

    public boolean isParentIf() {
        return parentIf;
    }

    public void setParentIf(boolean parentIf) {
        this.parentIf = parentIf;
    }
}